package com.zretc.service.impl;

import com.zretc.dao.UserMapper;
import com.zretc.entity.User;
import com.zretc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author WHP
 */
@Service

public class UserrServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User getUseruserAccountAndPassword(String userPhone) {
        return userMapper.userLogin(userPhone);
    }

    @Override
    public int userInsertRegister(String userPhone) {
        return userMapper.userRegister(userPhone);
    }

    @Override
    public int update(User user) {
        return userMapper.userUpdate(user);
    }

}
